#ifndef VIDEO_H_
#define VIDEO_H_


#define TEXTBUFFER ((uint_16 *)0xb8000)
#define TEXTDSTADDR (TEXTBUFFER + cursor_x + cursor_y * 80)
#define TEXTBUFSIZE (80 * 25 * 2)


#define MOVE_CURSOR(x, y)			\
  {						\
    do						\
    {						\
      uint_16 *dst;				\
      cursor_x = (x);				\
      cursor_y = (y);				\
      dst = TEXTDSTADDR;			\
      *dst = 0x8fdb;				\
    }						\
    while(0);					\
  }




extern void cls();
extern void move_cursor(int ,int);
extern void putchar(char);

#endif
